Ext.require([
             'Ext.form.field.ComboBox',
             'Ext.form.FieldSet',
             'Ext.tip.QuickTipManager',
             'Ext.data.Model',
             'Ext.data.Store',
             'Ext.data.ArrayStore',
             'Ext.data.JsonReader',
             'Ext.data.Connection',
             'Ext.data.JsonStore',
             'Ext.window.MessageBox',
             'Ext.grid.*',
             'Ext.selection.CheckboxModel',
             'Ext.selection.CellModel'
         ]);

Ext.onReady(function() {
	
	Ext.util.Cookies.set("EasyCodeBroswerCheck","N");
	if (!Ext.isChrome && Ext.util.Cookies.get("EasyCodeBroswerCheck") != "Y"){
		Ext.MessageBox.alert('温馨提示', '由于内部应用，只通过Chrome浏览器兼容性测试，建议你换成Chrome以免影响正常使用。');
		Ext.util.Cookies.set("EasyCodeBroswerCheck","Y");
	}
	
    var  vp =  Ext.create('Ext.Viewport', {
        layout: {
            type: 'border',
            padding: 5
        },
        defaults: {
            split: true
        },
        items: [{
            region: 'north',
            collapsible: false,
            title: '',
            split: true,
            height: 35,
            minHeight: 35,
            bodyStyle:'background-color:#DDE7F4',
            border:false,
            html: '<a href="' + f_getRootPath() + '" style="text-decoration: none" title="EasyCode"><span style=\"font-weight:bold;font-size:25px; color:#03336F;\">EasyCode</span> | <span style=\"font-size:13px; color:#03336F;\">良无限技术部开发效率工具</span></a><span style=\"color:#03336F;\"> | 有问题?提需求?：</span><a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid=%E8%99%9A%E6%80%80&siteid=cntaobao&status=1&charset=utf-8"><img border="0" src="http://amos.alicdn.com/realonline.aw?v=2&uid=%E8%99%9A%E6%80%80&site=cntaobao&s=1&charset=utf-8" alt="有事和我联系" /></a>'
        },{
            region: 'center',
            layout: 'table',
            layoutConfig:{columns:3},
            border: true,
            resizable:false,
            header:true,
            title: '工具箱',
            items: [
            	{
				    resizable:false,
				    collapsible: true,
                    split: true,
                    height: 150,
                    width:300,
                    padding: 10,
                    minHeight: 100,
				    title: '<a href="autocode.do" style="text-decoration: none; color:#04408C" target="_blank" title="点击使用">AutoCode(代码生成工具)</a>',
				    html:'<div style="line-height:20px; color:#808080">功能：支持根据数据库信息快捷生成DataObject, SqlMap, DAO接口, DAO实现类, Service接口, Service实现类等代码；<br> >> <a href="autocode.do" style="font-size:13px;" target="_blank">进入使用</a></div>'
				},
            	{
				    resizable:false,
				    collapsible: true,
                    split: true,
                    height: 150,
                    width:300,
                    padding: 10,
                    minHeight: 100,
				    title: '<a href="autowiki.do" style="text-decoration: none; color:#04408C" target="_blank">AutoWiki(单测Wiki生成工具)</a>',
				    html:'<div style="line-height:20px; color:#808080">功能：支持复制生成wiki文本，自动构造wiki文本等功能；<br> >> <a href="autowiki.do" style="font-size:13px;" target="_blank">进入使用</a></div>'
				}
            ]
        }]
    });
});